﻿//bibaoke.com

using Less.WebBrowserQuery.SelectorParamParser;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace Less.WebBrowserQuery
{
    /// <summary>
    /// WebBrowser 扩展方法
    /// </summary>
    public static class WebBrowserExtensions
    {
        /// <summary>
        /// 使用 css 选择器查询元素
        /// </summary>
        /// <param name="browser"></param>
        /// <param name="param"></param>
        /// <returns></returns>
        public static HtmlElement[] Query(this WebBrowser browser, string param)
        {
            return browser.Document.Query(param);
        }
    }
}
